/*
    Contact info:
    bhepple@freeshell.org
    http://bhepple.freeshell.org/scrmgr

    Copyright (C) 1991-2008 Bob Hepple

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; see the file COPYING.  If not, write to
    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.

*/
/* Here are the entry points not needed by 'line-mode' programs -
   all the screen I/O etc */

#define SM_CLASS extern
#include "smlib.h"
#include "smio.h"

CHAR *smstub_rcsid(void) {
    return("$Id: smstubio.c,v 1.6 2008/02/19 13:15:50 bhepple Exp $");
}

void		smio_init ARG3(int, doit, int, argc, CHAR **, argv) {}
void		smio_term() {}
void		smio_enq ARG3(int, window, int *, row, int * ,col) {}
void		smio_enq_screen ARG2(int *, row, int *, col) {}
int 		smio_enq_mouse ARG3(int *, row, int *, col, int *, delta) {return(0);}
void		smio_goto ARG3(int, window, int, row, int, col) {}
void		smio_enh ARG2(int, window, ENH, enhancement) {}
void		smio_puts ARG2(int, window, CHAR *, s) {}
void 		smio_push_command ARG1(int, command) {}
void 		smio_add_callback ARG2(f_ptr, f, void *, object) {}
int 		smio_destroy_callback() {return(0);}
void 		smio_init_callback() {}
void 		smio_main_loop() {}	
void		smio_bell() {}
void 		smio_paint_skey ARG1(SM_SOFTKEY, softkey_set) {}
void 		smio_paint_menu ARG1(SM_MENU, menu) {}
void 		smio_null_skey NOARGS {}
void		smio_flushinp() {}
void		sm_read_built_ins() {}
void 		sm_add_field_popup_item ARG2(SM_FIELD, field, CHAR *, item) {}
void 		sm_delete_field_popups ARG1(SM_FIELD, field) {}

void smio_message ARG1(CHAR *, s) 
{ 
    fprintf(stderr, "%s\n", s);
}

void smio_abort ARG1(CHAR *, msg) 
{ 
    smio_message(msg);
    exit(1);
}

int smio_error ARG1(CHAR *, msg) 
{
    smio_message(msg);
    return(0);
}

int smio_line_error ARG3(CHAR *, msg, CHAR *, offense, int, line_num)
{
    fprintf(stderr, "%s in line # %d \"%s\"\n", msg, line_num, offense);
    return(0);
}


/* For emacs:
 * Local Variables:
 * tab-width: 8
 * End:
 */
